//提交表单
function onSubmitForm(url, data) {
	var tempForm=creatForm(url);
	appendFormChild(tempForm,data);
	document.body.appendChild(tempForm); 
	//document.getElementById("FormSubmit").submit();
	tempForm.submit();	
}

//创建form表单
function creatForm(url){
	var tempForm = document.createElement("form"); 
	var id=Math.random()*(1000);
	tempForm.id=id; 
	//tempForm.id="FormSubmit"; 
	tempForm.method="post"; 
	tempForm.action=url; 
	tempForm.target = "_blank";
	
	return tempForm;
}
//添加参数信息
function appendFormChild(form,data){	
	
	for(var key in data ){
	 var hideInput = document.createElement("input"); 
		hideInput.type="hidden"; 
		hideInput.name= key ;
		hideInput.value= data[key]; 
		form.appendChild(hideInput); 
	}
	
}


